<?php
class Groupmodel extends CI_Model{

public function __construct(){

        parent::__construct();
}
public function get_groups(){
  $sql="select * from role";
  $query=$this->db->query($sql);
  if($query->num_rows()>0){
    $arr=$query->result_array();
  }else{
    $arr=0;
  }
  return $arr;
}
}


?>
